﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using BCGPSCommon;
using BCCommon.Enums.TMS;

namespace BCDto.TMS.Fence
{
    /// <summary>
    /// 电子围栏 数据模型
    /// </summary>
    public class FencePutDto
    {
        /// <summary>
        /// 电子围栏Id
        /// </summary>
        [Display(Name = "电子围栏Id")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public long FenceId { get; set; }


        /// <summary>
        /// 围栏名称
        /// </summary>            
        [Display(Name = "围栏名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string FenceName { get; set; }

        /// <summary>
        /// 围栏编号
        /// </summary>            
        [Display(Name = "围栏编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int FenceNumber { get; set; }
         
        /// <summary>
        /// 劳务公司Id
        /// </summary>            
        [Display(Name = "劳务公司Id")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public long WorkCompanyId { get; set; }

        /// <summary>
        /// 省/州编码
        /// </summary>            
        [Display(Name = "省/州编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 市编码
        /// </summary>            
        [Display(Name = "市编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CityCode { get; set; }

        /// <summary>
        /// 县编码
        /// </summary>            
        [Display(Name = "区/县编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CountyCode { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>            
        [Display(Name = "是否启用")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool IsEnable { get; set; }
         
        /// <summary>
        /// 多边形范围
        /// </summary>            
        [Display(Name = "多边形范围")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public List<Map2DCoordinate> PointList { set; get; }

        /// <summary>
        /// 地图种类
        /// </summary>
        [Required(ErrorMessage = "地图种类")]
        public GpsMapType GpsMapType { set; get; }
        /// <summary>
        /// 备注
        /// </summary>            
        [Display(Name = "备注")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Remark { get; set; }


    }
}